net/http.Header.Set (method)
48 uses
net/http (current package)
client.go#L251: req.Header.Set("Authorization", "Basic "+basicAuth(username, password))
client.go#L695: req.Header.Set("Referer", ref)
client.go#L797: ireqhdr.Set("Cookie", strings.Join(ss, "; "))
client.go#L862: req.Header.Set("Content-Type", contentType)
fs.go#L157: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L295: w.Header().Set("Content-Type", ctype)
fs.go#L326: w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
fs.go#L360: w.Header().Set("Content-Range", ra.contentRange(size))
fs.go#L367: w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
fs.go#L391: w.Header().Set("Accept-Ranges", "bytes")
fs.go#L419: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L618: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L781: w.Header().Set("Location", newPath)
h2_bundle.go#L6096: rp.header.Set("Cookie", strings.Join(cookies, "; "))
header.go#L39: func (h Header) Set(key, value string) {
request.go#L476: r.Header.Set("Cookie", c+"; "+s)
request.go#L478: r.Header.Set("Cookie", s)
request.go#L1032: r.Header.Set("Authorization", "Basic "+basicAuth(username, password))
server.go#L565: w.Header().Set("Connection", "close")
server.go#L2148: w.Header().Set("Connection", "close")
server.go#L2249: h.Set("Content-Type", "text/plain; charset=utf-8")
server.go#L2250: h.Set("X-Content-Type-Options", "nosniff")
server.go#L2341: h.Set("Location", hexEscapeNonASCII(url))
server.go#L2343: h.Set("Content-Type", "text/html; charset=utf-8")
server.go#L2632: w.Header().Set("Allow", strings.Join(allowedMethods, ", "))
server.go#L2736: w.Header().Set("Connection", "close")
server.go#L3781: w.Header().Set("Content-Length", "0")
transport.go#L1770: h.Set("Proxy-Authorization", pa)
transport.go#L1791: hdr.Set("Proxy-Authorization", pa)
transport.go#L2702: req.extraHeaders().Set("Accept-Encoding", "gzip")
transport.go#L2713: req.extraHeaders().Set("Connection", "close")
github.com/coinbase/cdp-sdk/go
cdp.go#L73: req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", jwt))
cdp.go#L74: req.Header.Set("Content-Type", "application/json")
cdp.go#L121: req.Header.Set("X-Wallet-Auth", walletJwt)
github.com/coinbase/cdp-sdk/go/openapi
client.gen.go#L1118: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L1129: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L1259: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L1270: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L1332: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L1343: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L1405: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L1416: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L1857: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L1868: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L1998: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L2009: req.Header.Set("X-Idempotency-Key", headerParam1)
client.gen.go#L2071: req.Header.Set("X-Wallet-Auth", headerParam0)
client.gen.go#L2082: req.Header.Set("X-Idempotency-Key", headerParam1)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |